FROM node:latest

RUN npm install yarn -g
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app/
RUN yarn install --prod
CMD ["node", "./index.js"]